package balmysundaycandy.morelowlevel.sample.services;

import com.google.apphosting.api.DatastorePb.Query;

public class QueryService {
	private static final String KIND_NAME = "ASYNC";
	private static final String APPID = "balmysundaycandy";


	public QueryService() {
	}

	public com.google.apphosting.api.DatastorePb.Query getDefaultQuery() {
		com.google.apphosting.api.DatastorePb.Query defaultQuery = new Query();
		defaultQuery.setApp(APPID);
		defaultQuery.setKind(KIND_NAME);
		return defaultQuery;
	}

	public com.google.apphosting.api.DatastorePb.Query createQuery(String appid, String kind) {
		com.google.apphosting.api.DatastorePb.Query query = new Query();
		query.setApp(appid);
		query.setKind(kind);
		return query;
	}

}
